﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Drawing;
using System.Drawing.Drawing2D;
using PLAYXPERT.Controls;

namespace SkypePXP
{
    public class SkypeDock : Panel
    {
        public Panel Pane = new Panel();
        public bool Expanded { get; set; }
        bool Initialized = false;

        public SkypeDock()
        {

        }

        protected override void OnPaint(PaintEventArgs e)
        {
            if (!Initialized)
            {
                // Initialize the Dock in Collapsed Mode
                this.Size = new System.Drawing.Size(15, 400);
                this.BackColor = Color.Blue;
                
                Button b = new Button();
                b.Dock = DockStyle.Fill;
                b.BackColor = Color.LightSlateGray;
                b.Click += new EventHandler(b_Click);
                this.Controls.Add(b);
                Initialized = true;
            }

            // Paint
            base.OnPaint(e);
        }

        void b_Click(object sender, EventArgs e)
        {
            throw new NotImplementedException();
        }
    }
}
